package handler.accountFormHandlers;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import other.AssetRegistryFrame;
import builder.FormBuilder;
import builder.FormDirector;
import builder.AccountFormBuilderPackage.AccountFormBuilder;
import builder.AccountFormBuilderPackage.LoginDecorator;

import form.FormInputComponent;

public class RegisterCancelButtonActionListener implements ActionListener {

	FormInputComponent component;

	public void setAssetFormInputComponent(FormInputComponent component){
		this.component = component;
	}
	
	public void actionPerformed(ActionEvent e) {

		FormBuilder loginbuilder = new AccountFormBuilder();
		loginbuilder = new LoginDecorator(loginbuilder);
		FormDirector logindirector = new FormDirector(loginbuilder);
		logindirector.construct();
		
		AssetRegistryFrame.getARFrame().changePanel(logindirector.getForm());
		
		
	}

}
